package com.bsoft.gol.hcs.enumcase;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 治疗信息枚举
 * @author lanyu
 * @date 2021年11月01日 10:11
 */
@NoArgsConstructor
@AllArgsConstructor
public enum TreatmentEnum {

    QueryTreatmentInfoRecord("ODS_queryTreamentInfo","ODS_02090005");

    private String code;
    private String value;

    public static final String getValue(String code){
        for (TreatmentEnum type : TreatmentEnum.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type.value;
            }
        }
        return null;
    }


    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
